package com.zlf.file;

import org.junit.Test;

import java.io.File;
import java.io.FileFilter;

/**
 * Created by zlf on 17-1-19.
 */
public class ReadMusicName {

    @Test
    public void testReadeFile(){
        File file=new File("/home/zlf/Music");
        File[] files=file.listFiles();

        for(File f:files){
//            System.out.println(f.getName());
            System.out.println(f.getAbsolutePath());;
            f.renameTo(f);
        }



    }
}
